.viewer-header {
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 16px;
}

.viewer-header-config-button {
  box-sizing: border-box;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.viewer-header-config-button:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-popup {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 4px;
  width: max-content;
  min-width: 300px;
  max-height: 400px;
  background: rgb(30, 36, 37);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.config-popup .react-json-view {
  background-color: transparent !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.resize-handle {
  width: 4px;
  margin-left: 8px;
  margin-right: 8px;
  background-color: hsla(255, 255%, 255%, 0.1);
  transition: background-color 0.2s;
}

.resize-handle:hover {
  background-color: hsla(0, 0%, 100%, 0.2);
}

/* Optional: Change cursor on hover */
.resize-handle:hover {
  cursor: col-resize;
}

.viewer-header-view-button {
  box-sizing: border-box;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  z-index: 1000;
}

.viewer-header-view-button:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-options-container {
  position: relative;
}

.download-dropdown-container {
  position: relative;
  z-index: 1000;
}

.download-options-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgb(30, 36, 37);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  min-width: 150px;
  width: max-content;
}

.download-options-menu {
  width: 100%;
  padding: 8px;
}

.download-options-menu-item {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-options-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Style scrollbars for the config popup Flex container */
.config-popup-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.config-popup-content::-webkit-scrollbar-track {
  background: transparent;
}

.config-popup-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.config-popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar styles for scrollable-content */

.scrollable-content {
  height: 100%;
  background-color: var(--bg-0);
  overflow: auto !important;
  padding: 8px;
  padding-right: 0px;
  width: 100%;
  min-width: 0;
}

.scrollable-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scrollable-content::-webkit-scrollbar-corner {
  background: transparent;
}
